<script setup>
import {inject} from "vue";
/*夸组件调用
* 在顶层组件app.vue 中定义 provide('appvue','this is room data app.vue'+appdata.value)
* */
const getappdata = inject('appvue')

const getchange=inject('change-key')
const count=inject('count-key')
</script>

<template>
资料 =>{{getappdata}}+{{count}}
  <button @click="getchange">修改顶层传过来的数据</button>
</template>

<style scoped>

</style>